package com.gitee.proxy.handler.proxy;

import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;

public class HttpsProxyClientInitalizer extends ChannelInitializer {

    private Channel clientChannel;

    public HttpsProxyClientInitalizer(Channel clientChannel) {
        this.clientChannel = clientChannel;
    }

    @Override
    protected void initChannel(Channel ch) throws Exception {
        ch.pipeline().addLast(new ProxyClientHandler(clientChannel));
    }
}
